#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int m = 0;
	int n = 0;
	scanf("%d %d", &m, &n);
	int* p1 = &m;
	int* p2 = &n;
	int tmp = *p1;
	*p1 = *p2;
	*p2 = tmp;
	printf("%d %d", m, n);
}